using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using FpFrame;

public class StartPanel:UIView,IStartView
{
    public  Button m_StartButton;
    
    public override void OnInit()
    {
        m_StartButton.onClick.AddListener(() =>
        {
            EventBus.Publish(new UIEvent(UIEventType.Start));
        });
    }

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            EventBus.Publish(new UIEvent(UIEventType.Start));
        }
    }
}
